package com.yuanzheng.test.util;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author xinan
 */
@ConfigurationProperties(prefix = "jedis")
@Component
@Data
public class JedisConfig {
    /**
     * 数据库编号
     */
    private int database;
    /**
     * IP
     */
    private String host;
    /**
     * 端口
     */
    private int port;
    /**
     * 密码
     */
    private String password;
}
